//package com.cy.security;
//
//import org.springframework.security.core.Authentication;
//import org.springframework.security.web.authentication.AuthenticationSuccessHandler;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//
//public class LoginSuccessHandler implements AuthenticationSuccessHandler {
//
//
////    public LoginSuccessHandler(SystemProperties systemProperties) {
////        this.systemProperties = systemProperties;
////    }
//
//    @Override
//    public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException {
////        response.sendRedirect(systemProperties.getIndexPage());
//    }
//
//}